package com.fasteat.menu.util;

/**
 * @author run
 * @since 2021/3/9 20:37
 */
public class MyStrUtil {

    public static String limitLength(String source, int length){
        if (source.length() <= length){
            return source;
        }
        return source.substring(0,length + 1) + "...";
    }
}
